TEMPLATE = lib
TARGET = DndData
CONFIG += create_prl \
    qt \
    warn_on

# VERSION = 1.0.0
# Input
HEADERS += CacheEntry.h \
    CharacterData.h \
    ClassDetails.h \
    DndData.h \
    Feat.h \
    Power.h \
    Race.h \
    Skill.h \
    TitledData.h \
    Trait.h \
    CharacterRecord.h \
    TraitException.h
SOURCES += CacheEntry.cpp \
    CharacterData.cpp \
    ClassDetails.cpp \
    DndData.cpp \
    Feat.cpp \
    Power.cpp \
    Race.cpp \
    Skill.cpp \
    TitledData.cpp \
    Trait.cpp \
    CharacterRecord.cpp \
    TraitException.cpp
INCLUDEPATH += ../.
DEPENDPATH += ../.
macx { 
    DESTDIR = ../../DndTool.app/Contents/Frameworks
    CONFIG += lib_bundle
    
    # change bundle folder per debug or release
    # QMAKE_FRAMEWORK_BUNDLE_NAME = $$qtLibraryTarget($$TARGET).framework
    QMAKE_LFLAGS_SONAME = -Wl,-install_name,@executable_path/../Frameworks/
    QMAKE_LFLAGS += -F$$DESTDIR
    LIBS += -framework \
        Xml
}
else { 
    DESTDIR = ../../lib
    LIBS += -L../../lib \
        -lXml
}
OTHER_FILES += ../../dndtool.rc
